#!/bin/bash
#

for i in $(seq 5);do
    if id user$i &> /dev/null;then
     userdel user${i}
     echo "用户user${i}已删除"
    else
     echo "用户user${i}不存在"
    fi
done
